let mix = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */

mix
    .js('resources/assets/js/app.js', 'public/js')
    // .js('resources/assets/js/work/app-work.js', 'public/js')
    .sass('resources/assets/sass/app.scss', 'public/css')
    .version();
/**
 * create_video.js 需要在upload-video.js之前
 */

// mix.babel([
//     'public/js/plupload/js/moxie.js',
//     'public/js/plupload/js/plupload.dev.js',
//     'resources/assets/js/video/create_video.js',
//     'public/js/upload-video.js'
// ], 'public/js/video/create_video.js').version();
/**
 * edit_subtitles.js 需要在upload-video.js之前
 */
// mix.babel([
//
//     'public/js/plupload/js/moxie.js',
//     'public/js/plupload/js/plupload.dev.js',
//     'resources/assets/js/video/edit_subtitles.js',
//     'resources/assets/js/video/subtitles_operate.js',
//     'public/js/video-controls.js',
//     'public/js/video.js',
//     'public/js/file-action-warn.js',
//     'public/js/upload-video.js'
// ], 'public/js/video/edit_subtitles.js').version();
//
// mix.babel([
//
//     'resources/assets/js/video/show.js',
//     'resources/assets/js/video/subtitles_operate.js',
//     'public/js/video-controls.js',
// ], 'public/js/video/show.js').version();

// if (!mix.inProduction()) {
//     mix.browserSync(process.env.APP_URL)
// }